class Window_Cold < Window_Base
def initialize
super(0, 0, 544, 120)
self.opacity = 0
refresh
end
def refresh
contents.clear
draw_сold(200,0)
if $game_switches[10] == true
draw_led(200,50)
end
if $game_switches[13] == true
draw_fire(200,50)
end
end
def draw_сold(x, y, width = 124)
draw_gauge(x, y+7, width, $game_variables[1]*0.05,
mp_gauge_color1, mp_gauge_color2)
change_color(system_color)
draw_text(x, y, 80, line_height, "Энергия")
draw_current_and_max_values(x, y, width, $game_variables[1], 20,
normal_color, normal_color)
end
def draw_led(x, y, width = 124)
draw_gauge(x, y+7, width, $game_variables[2]*0.1,
tp_gauge_color1, tp_gauge_color2)
change_color(system_color)
draw_text(x, y, 80, line_height, "Усилие")
draw_current_and_max_values(x, y, width, $game_variables[2], 10,
normal_color, normal_color)
end
def draw_fire(x, y, width = 124)
draw_gauge(x, y+7, width, $game_variables[14]*0.05,
hp_gauge_color1, hp_gauge_color2)
change_color(system_color)
draw_text(x, y, 80, line_height, "Огонь")
draw_current_and_max_values(x, y, width, $game_variables[14], 20,
normal_color, normal_color)
end
end
Социальные закладки